package com.jmz.apt.api.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by fanglexue on 2019/10/23.
 */
@AllArgsConstructor
@Getter
public enum ResultStatus {
    SUCCESS(0, "操作成功"),
    SYSTEM_TOO_BUSY(1998, "系统繁忙"),
    FAIL(1999, "操作失败"),
    OPER_TOO_MANY(1000, "操作频繁"),
    UNFULL_REQUEST(1001, "请求信息不完整"),
    UNKNOW_CLIENT(1002, "未知的客户端"),
    SIGN_ERR(1003, "签名有误"),
    PARAM_ERR(1004, "参数错误"),
    REMOTE_ERR(1005, "服务器通讯异常"),
    OPEN_IN_APP(1006, "请在客户端打开"),
    INVALID_REQUEST(1007, "无效的请求"),
    NO_RIGHT_REQUEST(1008, "无权访问"),
    LOGIN_INFO_EMPTY(1009, "请登录"),
    LOGIN_TIMEOUT(1010, "登录超时，请重新登录"),


    SERVER_ERR(5000, "系统异常"),
    DATABASE_ERR(5001, "数据库异常"),
    REDIS_ERR(5002, "数据库异常(NOSQL)");



    private final Integer code;
    private final String desc;
}
